cmake_minimum_required(VERSION 3.30)
project(MathLibrary)

set(CMAKE_CXX_STANDARD 11)
# 设置输出为 DLL
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

# 定义 DLL 导出宏
add_definitions(-DMATHLIBRARY_EXPORTS)

# 添加源文件
add_library(MathLibrary SHARED MathLibrary.cpp MathLibrary.h)